package geppetto.phraseTable.prunning.global;

import geppetto.phraseTable.PhraseTable;
import geppetto.phraseTable.phrase.Phrase;
import geppetto.phraseTable.prunning.local.AbstractPhrasePrunner;

public class LocalPrunnerAdaptor extends AbstractGlobalPhrasePrunner{

	AbstractPhrasePrunner localPrunner;
	
	public LocalPrunnerAdaptor(AbstractPhrasePrunner localPrunner) {
		super();
		this.localPrunner = localPrunner;
	}

	@Override
	public boolean shouldPrunePhrase(Phrase p, PhraseTable table) {
		return localPrunner.shouldPruneEntry(p);
	}

}
